package org.example.cdpcrpbackend.util;

public class FileTool {
    public static String getExtension(String fileName) {
        if (fileName != null && fileName.contains(".")) {
            return fileName.substring(fileName.lastIndexOf("."));
        }
        return ""; // 没有后缀名
    }

}
